package lerry.display;
import flash.display.Shape;

/**
 * ...
 * @author lerry
 */
class DisplayUtils {
	static public function getBox(width:Float,height:Float,fillColor:UInt,lineColor:UInt):Shape {
		var sp:Shape = new Shape();
		sp.graphics.lineStyle(1, lineColor);
		sp.graphics.beginFill(fillColor);
		sp.graphics.drawRect(0, 0, width, height);
		sp.graphics.endFill();
		return sp;
	}
	static public function getCircle(radius:Float,fillColor:UInt,lineColor:UInt):Shape {
		var sp:Shape = new Shape();
		sp.graphics.lineStyle(1, lineColor);
		sp.graphics.beginFill(fillColor);
		sp.graphics.drawCircle(0, 0, radius);
		sp.graphics.endFill();
		return sp;
	}
}